package com.mlethe.library.dialog.demo;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.mlethe.library.dialog.DialogFragment;
import com.mlethe.library.dialog.demo.databinding.DialogTestBinding;

/**
 * @author Mlethe
 * @date 2020/8/4
 */
public class TestDialog extends DialogFragment {

    private DialogTestBinding binding;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = DialogTestBinding.inflate(inflater, container, false);
        return binding.getRoot();
    }

    @Override
    protected int getHeight() {
        return ViewGroup.LayoutParams.MATCH_PARENT;
    }

    @Override
    protected int getWidth() {
        return ViewGroup.LayoutParams.MATCH_PARENT;
    }
}
